const jedis    = require('./jedis');
const config   = require('../crawler/config/config');

class cookie{

    constructor() {
    }

    /**
     * 获取Cookie 默认获取pronhub网站的cookie
     */
    async getCookieByWebsite(cacheKey = config.COOKIE.CACHE_KEY){
        return await new jedis().get(cacheKey);
    }
}

module.exports = cookie;
